# data_string = "app_name=achievo_ad&app_version=7.83.3&device_token=cef3f807-c9fc-3ceb-a818-74ad1ecd48aa&status=1&warehouse=null&manufacturer=Google&device=Pixel+2+XL&os_version=29&channel=oziq7dxw%3A%3A%3A&vipruid=&regPlat=0&regid=null&rom=Dalvik%2F2.1.0+%28Linux%3B+U%3B+Android+10%3B+Pixel+2+XL+Build%2FQQ3A.200805.001%29&skey=6692c461c3810ab150c9a980d0c275ec"
data_string = "app_name=shop_android&app_version=7.83.3&client_type=android&dinfo=%7B%22ah1%22%3A%22%22%2C%22ah2%22%3A%22%22%2C%22ah3%22%3A%22%22%2C%22ah4%22%3A%22wifi%22%2C%22ah5%22%3A%221440_2712%22%2C%22ah6%22%3A1900800%2C%22ah7%22%3A8%2C%22ah8%22%3A3839950848%2C%22ah9%22%3A%22Pixel+2+XL%22%2C%22ah10%22%3A%22%22%2C%22ah11%22%3A%22%22%2C%22ah12%22%3A%22%22%2C%22ah13%22%3A%22%22%2C%22as1%22%3A%2210%22%2C%22as2%22%3A%22%22%2C%22as3%22%3A%22%22%2C%22as4%22%3A%222b0ccd53f6b3854c%22%2C%22as5%22%3A%22%22%2C%22as6%22%3A%22%22%2C%22as7%22%3A%2229%22%2C%22ac1%22%3A%22cef3f807-c9fc-3ceb-a818-74ad1ecd48aa%22%7D&mars_cid=cef3f807-c9fc-3ceb-a818-74ad1ecd48aa&phone_model=Pixel+2+XL&session_id=cef3f807-c9fc-3ceb-a818-74ad1ecd48aa_shop_android_1687334748240&sys_version=29&vcspKey=4d9e524ad536c03ff203787cf0dfcd29&vcspToken=NGQ5ZTUyNGFkNTM2YzAzZmYyMDM3ODdjZjBkZmNkMjl8fHwxNjg5OTI2NzQ4fHx8.6653fd9714fd420d90aca34cc407d4b6"

import json
from urllib.parse import quote_plus, unquote_plus

# data_dict = {item.split("=")[0]: item.split("=")[1] for item in data_string.split("&")}
# data_string = json.dumps(data_dict, indent=4)
# print(unquote_plus(data_string))

data_str = '{"ah1":"","ah2":"","ah3":"","ah4":"wifi","ah5":"1440_2712","ah6":1900800,"ah7":8,"ah8":3839950848,"ah9":"Pixel 2 XL","ah10":"","ah11":"","ah12":"","ah13":"","as1":"10","as2":"","as3":"","as4":"2b0ccd53f6b3854c","as5":"","as6":"","as7":"29","ac1":"cef3f807-c9fc-3ceb-a818-74ad1ecd48aa"}'
data_dict = json.loads(data_str)
print(json.dumps(data_dict, indent=2))
